Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support mult-chain wallets in get_metadata calls #46

Conversation

justinnout
Copy link
Contributor

@justinnout justinnout commented Nov 29, 2022

📦 Pull Request

The current implementation of magic-admin-php for metadata retrieval returns the Ethereum public_address.

We are adding functionality to query wallet(s) for any chain tied to the end-user.

Example (queries all Solana wallets created for the user if applicable):
meta = magic.User.get_metadata_by_token_and_wallet(did_token, WalletType.SOLANA)

Example (queries all wallets created for the user if applicable):
meta = magic.User.get_metadata_by_token_and_wallet(did_token, WalletType.ANY)

Please see supported wallet types inmagic_admin/resources/wallet.py.

🗜 Versioning

(Check one!)

  • Patch: Bug Fix?
  • Minor: New Feature?
  • Major: Breaking Change?

✅ Fixed Issues

  • [List any fixed issues here like: Fixes #XXXX]

🚨 Test instructions

make test

⚠️ Update CHANGELOG.md

  • I have updated the Upcoming Changes section of CHANGELOG.md with context related to this Pull Request.

@shortcut-integration
Copy link

Copy link

@joeblackwaslike joeblackwaslike left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, just one note, if this repo doesn't have pre-commit setup to run black, pylint, flake8, then we should create a ticket to track that. This is a public project so we should ideally be setup with some automation for the day someone actually submits a pull request

from testing.data.did_token import future_did_token
from testing.data.did_token import issuer
from testing.data.did_token import public_address


class TestUser:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we don't do the extra newline at the top of classes anymore

@justinnout
Copy link
Contributor Author

Looks good to me, just one note, if this repo doesn't have pre-commit setup to run black, pylint, flake8, then we should create a ticket to track that. This is a public project so we should ideally be setup with some automation for the day someone actually submits a pull request

Sounds good - ticket created https://app.shortcut.com/magic-labs/story/67008/magic-admin-python-setup-pre-commit

@justinnout justinnout merged commit e37b143 into master Dec 8, 2022
@justinnout justinnout deleted the justinherrera-sc-66190-support-new-feature-from-formatic-admin-api branch December 8, 2022 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants